#include "DirectionalLight.h"
DirectionalLight::DirectionalLight(std::vector<float>position, std::string name, std::vector<float>ambient, std::vector<float>diffuse, std::vector<float>specular):
	Light("DirectionalLight",position,name,ambient,diffuse,specular)
{
}
DirectionalLight::~DirectionalLight()
{
}
Light::DirectionalLightStructure DirectionalLight::GetLightStructure()
{
	DirectionalLightStructure result;
	result.ambient = GetAmbient();
	result.diffuse = GetDiffuse();
	result.specular = GetSpecular();
	DirectX::XMFLOAT3 direction(1.0f, 0.0f, 0.0f);
	DirectX::XMVECTOR directionVector = DirectX::XMLoadFloat3(&direction);
	directionVector = DirectX::XMVector3Transform(directionVector, m_transform->GetLocalMatrix());
	result.direction = direction;
	return result;
}